
<h2>Информация</h2>
<table class="form" style="margin-bottom: 20px;">
    <tr>
        <td>Име на задачата</td>
        <td class="value"><?= $this->escape($this->task['name']) ?></td>
    </tr>
    <tr>
        <td>Описание</td>
        <td class="value"><?= $this->escape($this->task['info']) ?></td>
    </tr>
    <tr>
        <td>Дата на започване</td>
        <td class="value"><?= $this->escape($this->task['date_start']) ?></td>
    </tr>
    <tr>
        <td>Дата на завършване</td>
        <td class="value"><?= $this->escape($this->task['date_end']) ?></td>
    </tr>
    <tr>
        <td>Отговорник</td>
        <td class="value"><?= $this->escape($this->task['supervisor_name']) ?></td>
    </tr>
    <tr>
        <td>Предвидени човеко-часа</td>
        <td class="value"><?= $this->escape($this->task['hours_expected']) ?></td>
    </tr>
    <tr>
        <td>Изразходвани до момента часове</td>
        <td class="value"><?= $this->escape($this->task['hours_current']) ?></td>
    </tr>
    <tr>
        <td>Статус на задачата</td>
        <td class="value"><?= $this->escape($this->task['status_name']) ?></td>
    </tr>
</table>

<h2>Служители</h2>

<? if ($this->users): ?>
<table class="list">
    <tr>
        <th>Служител</th>
        <th>Часове</th>
    </tr>
    <? foreach ($this->users as $user): ?>
    <tr>
        <td><?= $this->escape($user['first_name'] . ' ' . $user['last_name']) ?></td>
        <td><?= $this->escape($user['hours']) ?></td>
    </tr>
    <? endforeach ?>
</table>
<? else: ?>
Не са намерени служители
<? endif ?>



